package com.xneure.enging.section;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;

/**
 * <p>
 * 切面处理器
 * </p>
 *
 * <p>
 * Copyright: 版权所有<br>
 *
 * @author Administrator
 * @version 2015年10月11日
 */
//@Aspect
//@Component
public class EventFilter {
	// @Pointcut("execution(*
	// icesnow.neure.annotation.PersonServiceBean.*(..))")
	// private void anyMethod(JoinPoint point){
	//
	// }//定义一个切入点

	// @Before("execution(* icesnow.neure.annotation.PersonServiceBean.*(..))")
	// public void doAccessCheck(JoinPoint point) {
	// for (Object o : point.getArgs()) {
	// System.out.println(o.toString());
	// }
	// System.out.println("前置通知");
	// }
	//
	// @AfterReturning(pointcut = "execution(*
	// icesnow.neure.annotation.PersonServiceBean.*(..))", returning =
	// "returnValue")
	// public void doAfter(JoinPoint point, Object returnValue) {
	// System.out.println("后置通知");
	// }
	//
	// @After("execution(* icesnow.neure.annotation.PersonServiceBean.*(..))")
	// public void after(JoinPoint point) {
	// System.out.println("最终通知");
	// }
	//
	// @AfterThrowing("execution(*
	// icesnow.neure.annotation.PersonServiceBean.*(..))")
	// public void doAfterThrow(JoinPoint point) {
	// System.out.println("异常通知");
	// }

	@Around("execution(* com.xneure.*..*(..))")
	public Object doBasicProfiling(ProceedingJoinPoint pjp) throws Throwable {
		try {
//			 Signature sig = pjp.getSignature();
//			System.out.println(pjp.getTarget().getClass().getName()+"**"+sig.getName());
			return pjp.proceed();
		} finally {

		}
	}
}